﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace iTunesSync
{
    public partial class SyncStatus : Form
    {
        private int totalFiles;
        private int currentFile = 0;

        public SyncStatus()
        {
            InitializeComponent();
        }

        public void setTotal(int total)
        {
            totalFiles = total;
            progressBar1.Maximum = total;
            showFileStatus();
        }

        public void increaseCurrent()
        {
            currentFile++;
            progressBar1.PerformStep();
            showFileStatus();
        }

        private void showFileStatus()
        {
            label1.Text = currentFile + " / " + totalFiles;
        }
    }
}
